package main

import "github.com/gin-gonic/gin"
import "net/http"

func main() {
  router := gin.Default()
  router.GET("/hello", func(c *gin.Context) {
    c.String(http.StatusOK,"hello world")
  })
  router.Run(":8080") // 监听并在 0.0.0.0:8080 上启动服务
}